package com.yt.fras.pojo.base;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * ClassName:UserOutputExcel
 * Package:com.yt.fras.pojo.base
 * Description:
 *
 * @date:2021/11/15 8:10
 * @author:yt
 */
@Getter
@Setter
@EqualsAndHashCode
public class UserOutputExcel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty("用户名")
    @ColumnWidth(15)
    private String username;

    @ExcelProperty(value = "考勤描述")
    @ColumnWidth(15)
    private String description;

    @ExcelProperty(value = "考勤状态")
    private String status;

    @ExcelProperty(value = "开始时间")
    @ColumnWidth(18)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ExcelProperty(value = "结束时间")
    @ColumnWidth(18)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public UserOutputExcel(String username, String description, String status, Date startTime, Date endTime) {
        this.username = username;
        this.description = description;
        this.status = status;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public UserOutputExcel() {
    }
}
